<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title></title>
    <link rel="stylesheet" href="../style/ucs.css">
    <link rel="stylesheet" href="../content/font/iconfont.css">
    <link rel="stylesheet" href="../style/theme.css">
</head>
<body>
    <div id="giraffe"></div>
    <script type="text/javascript" src="../../dist/libs/u-eventhub.js"></script>
    <script type="text/javascript" src="../../dist/libs/engine.js"></script>
    <script type="text/javascript" src="../../dist/ucsmy-ui.js"></script>
    <script type="text/javascript">
        document.getElementById('giraffe').style.minHeight = (document.body.clientHeight-324)+"px";
    </script>
    <script type="text/javascript">

        var phoneDM = new UDM({
            placeholder:"请输入手机号码",
            validator:[
                {type:"require",msg:"请输入手机号码"},
                {type:"mobile",msg:"手机号码格式错误，请重新输入"}
            ]
        });
        var passwordDM = new UDM({
            placeholder:"请输入密码",
            validator:[
                {type:"require",msg:"登录密码不能为空"}
            ]
        });
        var imgCodeDM = new UDM({
            placeholder:"请输入验证码",
            validator:[
                {type:"require",msg:"验证码不能为空"},
                {type:"fn",fn:function (v) {
                    if(btnDM.clicked){
                        btnDM.clicked = false;
                        console.log('22')
                        return true;
                    }else{
                        console.log('333')
//                        return CheckImageCode('LoginImgCode', v);
                    }
                }}
            ]
        });
        var imgBtnDM = new UDM({
            value:"../content/images/code.jpg",
            onClick:function(){
                imgBtnDM.setValue("../content/images/logoe.jpg");
            }
        });
        var btnDM = new UDM({
            clicked:false,
            onMouseDown:function () {
                btnDM.clicked = true;
            },
            onClick:function(e){
                console.log("登录按钮！")
            }
        });

        //链接
        var URLDM = new UDM({
            register:"../Register/index.html",   //快来注册
            findPwd:"../FindPwd/index.html" //忘记密码
        });

        var PageDM = {
            URL:URLDM,
            phone:phoneDM,
            password:passwordDM,
            imgCode:imgCodeDM,
            imgBtn:imgBtnDM,
            btn:btnDM
        }
    </script>
<script type="text/javascript" src="../Login\index.js"></script></body>
</html>